<template>
	<view class="">
		<view class="mainCon">
			<jyf-parser :html="content"></jyf-parser>
		</view>
		<mix-loading v-if="isLoading"></mix-loading>
	</view>
</template>

<script>
	import jyfParser from "@/components/jyf-parser/jyf-parser.vue"
	import {fromContent} from "@/common/js/util.js"
	export default{
		data(){
			return{
				content:''
			}
		},
		onLoad() {
			this.loadData();
		},
		methods:{
			async loadData(){
				const res=await this.$request('content/rich-text',{type:9},{showLoading:true});
				if(res.result==0){
					this.content=fromContent(res.data.detail) ;
				}else{
					this.$util.msg(res.resultNote);
				}
			}
		}
	}
</script>

<style scoped>
	.mainCon{
		padding: 20upx;
	}
</style>
